//
// Created by dong on 2025/10/22.
//

#ifndef SDL_DRAW_TOOLS_SMANAGER_H
#define SDL_DRAW_TOOLS_SMANAGER_H
#include "Global.h"
#include "Button.h"
#include "ColorBar.h"
#include "Shape.h"
#include "ShapeBar.h"
#include "SLayout.h"

class SManager
{
public:
    SManager();
    ~SManager();
    void render(SDL_Renderer* render);
    bool event(SDL_Event* msg);

    Shape* createShape(SDL_Point begin,SDL_Point end,string name);
protected:
    vector<Shape*> m_shapes;
    SLayout* m_layout;
    ShapeBar* m_shapesBar;
    ColorBar* m_colorBar;

    string m_name;
    SDL_Point begin;
    SDL_Point end;
    bool isView;
    bool isClick;
};


#endif //SDL_DRAW_TOOLS_SMANAGER_H